package com.dgut.demo.controller;

import com.dgut.demo.bean.EmployeesCounts;
import com.dgut.demo.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther 虎
 * @Data 2021/3/2 16:19
 * @Version 1.0
 */
@RestController
public class StatisticsController {
    @Autowired
    private StatisticsService statisticsService;

    @GetMapping("/getAllEmployeesCounts")
    public EmployeesCounts getAllEmployeesCounts(){
        System.out.println("xxx");
        return statisticsService.getAllEmployeesCounts();
    }
}
